package com.walter.weixin.bridge.facade.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

/**
 *
 * @author Walter
 * @date 2025/1/17 下午5:55
 **/
@FeignClient(value = "weixin-bridge")
public interface DemoFeign {
    @GetMapping("/user/{id}")
    String getUser(@PathVariable("id") Long id);

    @GetMapping("/getId")
    String getId(@RequestParam("id") Long id);
}
